import axios from 'axios';
export const responseRules: any = {
  required: (field: any) => {
    field.setValidator({ required: true, message: '请输入' + field.title });
  },
  getOptions: async (field: any) => {
    const res = await axios.get('/api/moke/options.json');
    field.dataSource = res.data || [];
  },
};
